<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>/mobile/login.jsp</title>

	<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> 
	<LINK href="${cPath }/css/bud.css"  rel="stylesheet"  type="text/css"/>
	<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
	<script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>

</head>
<body>
<div data-role="page" data-theme="a">
<form action="${cPath }/loginChk.mo" method="post" data-ajax="false">
	<div data-role="header" data-position="fixed" data-theme="a">
		<h1>로그인</h1>
		<a class="ui-btn-right" href="${cPath }/join.mo" data-icon="custom" id="for" data-ajax="false" >회원가입</a>
	</div>

	<div data-role="content">
		<label for="basic"> E-mail </label>
		<input type="email" name="mem_email" id="email" value="${cookie.saveEmail.value }"  />
		<label for="basic"> password </label>
		<input type="password" name="mem_pass" id="pass" value=""  /><br />
		<label data-inline="true"><input name="check" data-mini="true" type="checkbox" ${empty cookie.saveEmail ? "" : "checked='checked'" } />Email저장</label>
		<br />

	</div>

	
	<div data-role="footer" data-position="fixed" data-theme="a">
		<div data-role="navbar">
			<ul>
				<li><input type="submit" value="Login"/></li>
			</ul>
		</div>		
	</div>
	
	<a href="#popupMsg" data-rel="popup" id="msg" hidden="true" data-position-to="window" data-transition="pop"></a>
	<div data-role="popup" id="popupMsg" data-overlay-theme="a" style="max-width:400px;" class="ui-corner-all">
		<div data-role="content" data-theme="d" class="ui-corner-bottom ui-content">
			<h3 class="ui-title">${msg }</h3>
		</div>
	</div>
	<c:if test="${!empty msg }">
		<script>
			$(function(){
				$("#msg").trigger("click");
			});
		</script>
	</c:if>

</form>
</div><!-- /page -->
</body>
</html>